<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{margin:0; padding:0;}
.login{width:300px; height:100px; border:1px solid #333; margin:0 auto;}
.inp{width:220px; height:30px; background:#ff0; float:left; clear:both}
.login a{float:right; }
.right{width:20px; height:30px; background:#363; float:right;}

</style>
</head>

<body>
<div class="login">
	<a href="#">注册</a>
    <a href="#">登录</a>
    <div class="inp"></div>
    <div class="right"></div>
</div>
</body>
</html>
